package com.hinnotek.warehouse.bean

import android.os.Parcel
import android.os.Parcelable
import com.hinnotek.warehouse.utils.WAREHOUSE_GOODS_TYPE_1
import java.io.Serializable


/**
 * 仓库
 */
data class WareHouseInfoBean(
    val manageUserId: Int,
    val manageUserName: String,
    val orderNum: String,
    val wareCount: String?,
    val wareFlag: Int,
    val wareId: Int,
    val wareName: String,
    val wareNum: String,
    val warePlace: String,
    val wareType: String
) : Serializable {

    val wareTypeString: String
        get() {
            return when (wareType) {
                "成品" -> WAREHOUSE_GOODS_TYPE_1
                "半成品" -> "02"
                "原材料" -> "03"
                else -> "01"
            }
        }

}

/**
 * 仓库详情
 */
data class WareHouseDetailBean(
    val createTime: Long,
    val createUser: String,
    val createUserId: Int,
    val deleteFlag: Int,
    val deviceId: Int,
    val deviceModel: String,
    val deviceName: String,
    val deviceType: String,
    val deviceTypeName: String,
    val inputOutput: String,
    val inputTime: String,
    val instructionsUrl: String,
    val materielNum: String,
    val outputTime: String,
    val personName: String,
    val productCertificateUrl: String,
    val productMoney: String,
    val productNum: String,
    val productNumUrl: String,
    val productTime: String,
    val productTimeEnd: String,
    val productTimeStart: String,
    val frmlossState: String,
    val borrowState: String,
    val testReportUrl: String,
    val wareId: Int
)

